Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paypal/funding-components

Package Overview
Dependencies
Maintainers
22
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/funding-components

PayPal Funding Components.

  • 1.0.32
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
22
Created
Source

PayPal Funding Components

build status code coverage npm version apache license

PayPal JavaScript SDK module to deal with funding sources and eligibility.

Remember a funding source from the client-side

Note: your client-id and domain must be approved to call this function

paypal.rememberFunding([ paypal.FUNDING.VENMO ]);

Remember a funding source from the server-side

import { rememberFunding } from '@paypal/funding-components';
import { FUNDING } from '@paypal/sdk-constants';

rememberFunding(req, res, [ FUNDING.VENMO ]);

Check a remembered funding source from the server-side

import { isFundingRemembered } from '@paypal/funding-components';
import { FUNDING } from '@paypal/sdk-constants';

if (isFundingRemembered(req, FUNDING.VENMO)) {
    // ...
}

Pass in a custom set of cookies:

isFundingRemembered(req, FUNDING.VENMO, { cookies })

Quick Start

Installing
npm install --save @paypal/funding-components
Getting Started
  • Fork the module
  • Run setup: npm run setup
  • Start editing code in ./src and writing tests in ./tests
  • npm run build
Building
npm run build
Tests
  • Edit tests in ./test/tests

  • Run the tests:

    npm test
    

Keywords

FAQs

Package last updated on 05 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc